package com.woniu.presell.service.impl;

import com.woniu.presell.VO.RoomVO;
import com.woniu.presell.entity.Room;
import com.woniu.presell.entity.Storey;
import com.woniu.presell.mapper.RoomMapper;
import com.woniu.presell.service.RoomService;
import org.apache.commons.lang.RandomStringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;

/**
 * @program: house-after
 * @description:
 * @author: qqq
 * @create: 2022-12-07 15:57
 **/
@Service
public class RoomServiceImpl implements RoomService {
    @Autowired
    private RoomMapper roomMapper;
    @Override
    public List<RoomVO> selectByFloorId(Long id) {
        return roomMapper.selectAll(id);
    }

    @Override
    public Room selectByRoomId(Long id) {
        return roomMapper.selectByPrimaryKey(id);
    }

    @Override
    public Room selectAllByRoomId(Long id) {
        return null;
    }



    @Override
    public int updateByPrimaryKeySelective(Room record) {
        return roomMapper.updateByPrimaryKeySelective(record);
    }


}
